import {request} from "@/utils/request";

/**
 * 获取楼栋接口
 * @description 首页数据
 */
export function listSpaceConstPageApi(data?: any) {
  return request(
    {
      url: '/bms/const/listSpaceConstPage',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    },
  );
}

/**
 * 获取楼栋楼层房间数据接口
 * @description 首页数据
 */
export function listBmsConstPageApi(data?: any) {
  return request(
    {
      url: '/bms/const/findBmsConstPageList',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false
    },
  );
}

/**
 * 获取楼栋楼层房间数据接口
 * @description 首页数据
 */
export function listFindByBmsConstVoApi(data?: any) {
  return request(
    {
      url: '/bms/const/listFindByBmsConstVo',
      method: 'post',
      data,
    },
    {
      isDataDirectly: true
    },
  );
}

/**
 * 添加字典信息
 * @description 首页数据
 */
export function insertBmsConstApi(data?: any) {
  return request(
    {
      url: '/bms/const/insertBmsConst',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false
    },
  );
}

/**
 * 修改字典信息
 * @description 首页数据
 */
export function modifyBmsConstApi(data?: any) {
  return request(
    {
      url: '/bms/const/modifyBmsConst',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false
    },
  );
}